#include"Seqlist.h"

void SLtest() {
	SeqList s;
	SeqListInit(&s);

	SeqListPushBack(&s, 1);
	SeqListPushBack(&s, 2);
	SeqListPushBack(&s, 3);
	SeqListPushBack(&s, 4);
	SeqListPushBack(&s, 5);// 1 2 3 4 5

	SeqListPushFront(&s, 8);
	SeqListPushFront(&s, 7);
	SeqListPushFront(&s, 6);// 6 7 8

	/*SeqListPopBack(&s);
	SeqListPopBack(&s);
	SeqListPopBack(&s);
	SeqListPopBack(&s);
	SeqListPopBack(&s);*/

	/*SeqListPopFront(&s);
	SeqListPopFront(&s);
	SeqListPopFront(&s);*/

	SeqListInsert(&s, 2, 2);

	SeqListErase(&s, 2);
	SeqListErase(&s, 2);
	SeqListErase(&s, 2);
	SeqListErase(&s, 2);

	SeqListPrint(&s);

	/*SeqListFind(&s, 4);
	SeqListFind(&s, 9);*/

	SeqListDestroy(&s);
}


int main() {

	SLtest();
	return 0;
}